package cn.cs.mapper;

import cn.cs.pojo.CarProductList;
import cn.cs.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShoppingCarMapper {
    ShoppingCart getShopCartByMap(Map<String, Object> map);

    int insertShoppingCart(ShoppingCart shopCar);

    int deleteOtherShopCar(Map<String, Object> param);

    Map<String,Object> getProCountOfCar(Map<String, Object> param);

    int updateCarProductCount(Map<String, Object> param);

    int insertCarProductList(CarProductList pro);

    List<Map<String,Object>> getProshops(Map<String, Object> para);

    List<Map<String,Object>> getProsByMap(Map<String, Object> para);

    List<CarProductList> getCarProductListListByMap(Map<String, Object> map);

    List<Map<String,Object>> getShopsByProIds(Map<String, Object> param);

    int deleteCarProductListById(String id);

    int updateCarProductList(CarProductList pro);
}
